
function createTree(id) {
	tree = new dTree("content");

	tree.add(0, -1, "<strong>HTML5宝典</strong>", "http://www.waibo.wang/bible/html5/");
	tree.add(1, -1, "1 HTML基础", "http://localhost/waibo/bible/html5/html/1/1.html");
	tree.add(101, 1, "1.1 认识HTML", "http://localhost/waibo/bible/html5/html/1/1.1.1.html");
	tree.add(10101, 101, "1.1.1 什么是HTML", "http://localhost/waibo/bible/html5/html/1/1.1.1.html");
	tree.add(10102, 101, "1.1.2 HTML发展史", "http://localhost/waibo/bible/html5/html/1/1.1.2.html");
	tree.add(10103, 101, "1.1.3 HTML初体验", "http://localhost/waibo/bible/html5/html/1/1.1.3.html");
	tree.add(102, 1, "1.2 HTML基本语法", "http://localhost/waibo/bible/html5/html/1/1.2.1.html");
	tree.add(10201, 102, "1.2.1 HTML元素", "http://localhost/waibo/bible/html5/html/1/1.2.1.html");
	tree.add(10202, 102, "1.2.2 HTML属性", "http://localhost/waibo/bible/html5/html/1/1.2.2.html");
		tree.add(102021, 10202, " class属性", "http://localhost/waibo/bible/html5/html/1/1.2.2.html#class属性");
		tree.add(102022, 10202, " id属性", "http://localhost/waibo/bible/html5/html/1/1.2.2.html#id属性");
		tree.add(102023, 10202, " style属性", "http://localhost/waibo/bible/html5/html/1/1.2.2.html#style属性");
		tree.add(102024, 10202, " title属性", "http://localhost/waibo/bible/html5/html/1/1.2.2.html#title属性");
		tree.add(102025, 10202, " accesskey属性", "http://localhost/waibo/bible/html5/html/1/1.2.2.html#accesskey属性");
		tree.add(102026, 10202, " tabIndex属性", "http://localhost/waibo/bible/html5/html/1/1.2.2.html#tabIndex属性");
		tree.add(102027, 10202, " dir属性", "http://localhost/waibo/bible/html5/html/1/1.2.2.html#dir属性");
		tree.add(102028, 10202, " contenteditable属性", "http://localhost/waibo/bible/html5/html/1/1.2.2.html#contenteditable属性");
		tree.add(102029, 10202, " hidden属性", "http://localhost/waibo/bible/html5/html/1/1.2.2.html#hidden属性");
		tree.add(1020210, 10202, " lang属性", "http://localhost/waibo/bible/html5/html/1/1.2.2.html#lang属性");
		tree.add(1020211, 10202, " translate属性", "http://localhost/waibo/bible/html5/html/1/1.2.2.html#translate属性");
		tree.add(1020212, 10202, " spellcheck属性", "http://localhost/waibo/bible/html5/html/1/1.2.2.html#spellcheck属性");
		tree.add(1020213, 10202, " data-*属性", "http://localhost/waibo/bible/html5/html/1/1.2.2.html#data-*属性");
	tree.add(10203, 102, "1.2.3 HTML注释", "http://localhost/waibo/bible/html5/html/1/1.2.3.html");
	tree.add(103, 1, "1.3 HTML文档结构", "http://localhost/waibo/bible/html5/html/1/1.3.1.html");
	tree.add(10301, 103, "1.3.1 &lt;!DOCTYPE>", "http://localhost/waibo/bible/html5/html/1/1.3.1.html");
	tree.add(10302, 103, "1.3.2 HTML根元素", "http://localhost/waibo/bible/html5/html/1/1.3.2.html");
	tree.add(10303, 103, "1.3.3 HTML头部", "http://localhost/waibo/bible/html5/html/1/1.3.3.html");
		tree.add(103031, 10303, " &lt;title>标签", "http://localhost/waibo/bible/html5/html/1/1.3.3.html#&lt;title>标签");
		tree.add(103032, 10303, " &lt;base>标签", "http://localhost/waibo/bible/html5/html/1/1.3.3.html#&lt;base>标签");
		tree.add(103033, 10303, " &lt;meta>标签", "http://localhost/waibo/bible/html5/html/1/1.3.3.html#&lt;meta>标签");
		tree.add(103034, 10303, " 样式表", "http://localhost/waibo/bible/html5/html/1/1.3.3.html#样式表");
		tree.add(103035, 10303, " 脚本", "http://localhost/waibo/bible/html5/html/1/1.3.3.html#脚本");
	tree.add(10304, 103, "1.3.4 HTML主体", "http://localhost/waibo/bible/html5/html/1/1.3.4.html");
	tree.add(104, 1, "1.4 动态网页技术", "http://localhost/waibo/bible/html5/html/1/1.4.html");
	tree.add(2, -1, "2 HTML元素", "http://localhost/waibo/bible/html5/html/2/2.html");
	tree.add(201, 2, "2.1 结构语义元素", "http://localhost/waibo/bible/html5/html/2/2.1.1.html");
	tree.add(20101, 201, "2.1.1 h1～h6元素", "http://localhost/waibo/bible/html5/html/2/2.1.1.html");
	tree.add(20102, 201, "2.1.2 header元素", "http://localhost/waibo/bible/html5/html/2/2.1.2.html");
	tree.add(20103, 201, "2.1.3 nav元素", "http://localhost/waibo/bible/html5/html/2/2.1.3.html");
	tree.add(20104, 201, "2.1.4 main元素", "http://localhost/waibo/bible/html5/html/2/2.1.4.html");
	tree.add(20105, 201, "2.1.5 article元素", "http://localhost/waibo/bible/html5/html/2/2.1.5.html");
	tree.add(20106, 201, "2.1.6 section元素", "http://localhost/waibo/bible/html5/html/2/2.1.6.html");
	tree.add(20107, 201, "2.1.7 aside元素", "http://localhost/waibo/bible/html5/html/2/2.1.7.html");
	tree.add(20108, 201, "2.1.8 footer元素", "http://localhost/waibo/bible/html5/html/2/2.1.8.html");
	tree.add(20109, 201, "2.1.9 address元素", "http://localhost/waibo/bible/html5/html/2/2.1.9.html");
	tree.add(202, 2, "2.2 内容分组元素", "http://localhost/waibo/bible/html5/html/2/2.2.1.html");
	tree.add(20201, 202, "2.2.1 div元素", "http://localhost/waibo/bible/html5/html/2/2.2.1.html");
	tree.add(20202, 202, "2.2.2 p元素", "http://localhost/waibo/bible/html5/html/2/2.2.2.html");
	tree.add(20203, 202, "2.2.3 hr元素", "http://localhost/waibo/bible/html5/html/2/2.2.3.html");
	tree.add(20204, 202, "2.2.4 pre元素", "http://localhost/waibo/bible/html5/html/2/2.2.4.html");
	tree.add(20205, 202, "2.2.5 figure元素", "http://localhost/waibo/bible/html5/html/2/2.2.5.html");
	tree.add(20206, 202, "2.2.6 blockquote元素", "http://localhost/waibo/bible/html5/html/2/2.2.6.html");
	tree.add(20207, 202, "2.2.7 列表元素", "http://localhost/waibo/bible/html5/html/2/2.2.7.html");
		tree.add(202071, 20207, " 无序列表", "http://localhost/waibo/bible/html5/html/2/2.2.7.html#无序列表");
		tree.add(202072, 20207, " 有序列表", "http://localhost/waibo/bible/html5/html/2/2.2.7.html#有序列表");
		tree.add(202073, 20207, " 描述列表", "http://localhost/waibo/bible/html5/html/2/2.2.7.html#描述列表");
	tree.add(203, 2, "2.3 文本语义元素", "http://localhost/waibo/bible/html5/html/2/2.3.1.html");
	tree.add(20301, 203, "2.3.1 文本元素", "http://localhost/waibo/bible/html5/html/2/2.3.1.html");
	tree.add(20302, 203, "2.3.2 strong元素", "http://localhost/waibo/bible/html5/html/2/2.3.2.html");
	tree.add(20303, 203, "2.3.3 small元素", "http://localhost/waibo/bible/html5/html/2/2.3.3.html");
	tree.add(20304, 203, "2.3.4 i元素", "http://localhost/waibo/bible/html5/html/2/2.3.4.html");
	tree.add(20305, 203, "2.3.5 b元素", "http://localhost/waibo/bible/html5/html/2/2.3.5.html");
	tree.add(20306, 203, "2.3.6 u元素", "http://localhost/waibo/bible/html5/html/2/2.3.6.html");
	tree.add(20307, 203, "2.3.7 s元素", "http://localhost/waibo/bible/html5/html/2/2.3.7.html");
	tree.add(20308, 203, "2.3.8 q元素", "http://localhost/waibo/bible/html5/html/2/2.3.8.html");
	tree.add(20309, 203, "2.3.9 cite元素", "http://localhost/waibo/bible/html5/html/2/2.3.9.html");
	tree.add(20310, 203, "2.3.10 mark元素", "http://localhost/waibo/bible/html5/html/2/2.3.10.html");
	tree.add(20311, 203, "2.3.11 abbr元素", "http://localhost/waibo/bible/html5/html/2/2.3.11.html");
	tree.add(20312, 203, "2.3.12 dfn元素", "http://localhost/waibo/bible/html5/html/2/2.3.12.html");
	tree.add(20313, 203, "2.3.13 time元素", "http://localhost/waibo/bible/html5/html/2/2.3.13.html");
	tree.add(20314, 203, "2.3.14 code元素", "http://localhost/waibo/bible/html5/html/2/2.3.14.html");
	tree.add(20315, 203, "2.3.15 var元素", "http://localhost/waibo/bible/html5/html/2/2.3.15.html");
	tree.add(20316, 203, "2.3.16 samp元素", "http://localhost/waibo/bible/html5/html/2/2.3.16.html");
	tree.add(20317, 203, "2.3.17 kbd元素", "http://localhost/waibo/bible/html5/html/2/2.3.17.html");
	tree.add(20318, 203, "2.3.18 sub和sup元素", "http://localhost/waibo/bible/html5/html/2/2.3.18.html");
	tree.add(20319, 203, "2.3.19 ins和del元素", "http://localhost/waibo/bible/html5/html/2/2.3.19.html");
	tree.add(20320, 203, "2.3.20 bdo和bdi元素", "http://localhost/waibo/bible/html5/html/2/2.3.20.html");
	tree.add(20321, 203, "2.3.21 ruby、rb、rt、rp元素", "http://localhost/waibo/bible/html5/html/2/2.3.21.html");
	tree.add(20322, 203, "2.3.22 br元素", "http://localhost/waibo/bible/html5/html/2/2.3.22.html");
	tree.add(20323, 203, "2.3.23 wbr元素", "http://localhost/waibo/bible/html5/html/2/2.3.23.html");
	tree.add(20324, 203, "2.3.24 span元素", "http://localhost/waibo/bible/html5/html/2/2.3.24.html");
	tree.add(204, 2, "2.4 链接元素", "http://localhost/waibo/bible/html5/html/2/2.4.1.html");
	tree.add(20401, 204, "2.4.1 a元素", "http://localhost/waibo/bible/html5/html/2/2.4.1.html");
	tree.add(20402, 204, "2.4.2 map元素", "http://localhost/waibo/bible/html5/html/2/2.4.2.html");
	tree.add(205, 2, "2.5 表格元素", "http://localhost/waibo/bible/html5/html/2/2.5.html");
	tree.add(206, 2, "2.6 嵌入式元素", "http://localhost/waibo/bible/html5/html/2/2.6.1.html");
	tree.add(20601, 206, "2.6.1 图像", "http://localhost/waibo/bible/html5/html/2/2.6.1.html");
	tree.add(20602, 206, "2.6.2 网页", "http://localhost/waibo/bible/html5/html/2/2.6.2.html");
	tree.add(20603, 206, "2.6.3 视频和音频", "http://localhost/waibo/bible/html5/html/2/2.6.3.html");
	tree.add(3, -1, "3 表单及应用", "http://localhost/waibo/bible/html5/html/3/3.html");
	tree.add(301, 3, "3.1 什么是表单", "http://localhost/waibo/bible/html5/html/3/3.1.html");
	tree.add(302, 3, "3.2 Form元素", "http://localhost/waibo/bible/html5/html/3/3.2.html");
		tree.add(3021, 302, " action属性", "http://localhost/waibo/bible/html5/html/3/3.2.html#action属性");
		tree.add(3022, 302, " method属性", "http://localhost/waibo/bible/html5/html/3/3.2.html#method属性");
		tree.add(3023, 302, " enctype属性", "http://localhost/waibo/bible/html5/html/3/3.2.html#enctype属性");
		tree.add(3024, 302, " onSubmit属性", "http://localhost/waibo/bible/html5/html/3/3.2.html#onSubmit属性");
		tree.add(3025, 302, " onReset属性", "http://localhost/waibo/bible/html5/html/3/3.2.html#onReset属性");
	tree.add(303, 3, "3.3 表单控件", "http://localhost/waibo/bible/html5/html/3/3.3.1.html");
	tree.add(30301, 303, "3.3.1 label控件", "http://localhost/waibo/bible/html5/html/3/3.3.1.html");
	tree.add(30302, 303, "3.3.2 input控件", "http://localhost/waibo/bible/html5/html/3/3.3.2.html");
		tree.add(303021, 30302, " text控件", "http://localhost/waibo/bible/html5/html/3/3.3.2.html#text控件");
		tree.add(303022, 30302, " hidden控件", "http://localhost/waibo/bible/html5/html/3/3.3.2.html#hidden控件");
		tree.add(303023, 30302, " password控件", "http://localhost/waibo/bible/html5/html/3/3.3.2.html#password控件");
		tree.add(303024, 30302, " radio控件", "http://localhost/waibo/bible/html5/html/3/3.3.2.html#radio控件");
		tree.add(303025, 30302, " checkbox控件", "http://localhost/waibo/bible/html5/html/3/3.3.2.html#checkbox控件");
		tree.add(303026, 30302, " file控件", "http://localhost/waibo/bible/html5/html/3/3.3.2.html#file控件");
		tree.add(303027, 30302, " search控件", "http://localhost/waibo/bible/html5/html/3/3.3.2.html#search控件");
		tree.add(303028, 30302, " tel控件", "http://localhost/waibo/bible/html5/html/3/3.3.2.html#tel控件");
		tree.add(303029, 30302, " url控件", "http://localhost/waibo/bible/html5/html/3/3.3.2.html#url控件");
		tree.add(3030210, 30302, " email控件", "http://localhost/waibo/bible/html5/html/3/3.3.2.html#email控件");
		tree.add(3030211, 30302, " number控件", "http://localhost/waibo/bible/html5/html/3/3.3.2.html#number控件");
		tree.add(3030212, 30302, " range控件", "http://localhost/waibo/bible/html5/html/3/3.3.2.html#range控件");
		tree.add(3030213, 30302, " color控件", "http://localhost/waibo/bible/html5/html/3/3.3.2.html#color控件");
		tree.add(3030214, 30302, " date pickers控件", "http://localhost/waibo/bible/html5/html/3/3.3.2.html#date pickers控件");
	tree.add(30303, 303, "3.3.3 textarea控件", "http://localhost/waibo/bible/html5/html/3/3.3.3.html");
	tree.add(30304, 303, "3.3.4 select控件", "http://localhost/waibo/bible/html5/html/3/3.3.4.html");
	tree.add(30305, 303, "3.3.5 keygen控件", "http://localhost/waibo/bible/html5/html/3/3.3.5.html");
	tree.add(30306, 303, "3.3.6 progress控件", "http://localhost/waibo/bible/html5/html/3/3.3.6.html");
	tree.add(30307, 303, "3.3.7 meter控件", "http://localhost/waibo/bible/html5/html/3/3.3.7.html");
	tree.add(30308, 303, "3.3.8 fieldset控件", "http://localhost/waibo/bible/html5/html/3/3.3.8.html");
	tree.add(304, 3, "3.4 表单按钮", "http://localhost/waibo/bible/html5/html/3/3.4.1.html");
	tree.add(30401, 304, "3.4.1 提交按钮", "http://localhost/waibo/bible/html5/html/3/3.4.1.html");
	tree.add(30402, 304, "3.4.2 重置按钮", "http://localhost/waibo/bible/html5/html/3/3.4.2.html");
	tree.add(30403, 304, "3.4.3 普通按钮", "http://localhost/waibo/bible/html5/html/3/3.4.3.html");
	tree.add(305, 3, "3.5 表单特性", "http://localhost/waibo/bible/html5/html/3/3.5.1.html");
	tree.add(30501, 305, "3.5.1 size", "http://localhost/waibo/bible/html5/html/3/3.5.1.html");
	tree.add(30502, 305, "3.5.2 min/maxlength", "http://localhost/waibo/bible/html5/html/3/3.5.2.html");
	tree.add(30503, 305, "3.5.3 readonly", "http://localhost/waibo/bible/html5/html/3/3.5.3.html");
	tree.add(30504, 305, "3.5.4 disabled", "http://localhost/waibo/bible/html5/html/3/3.5.4.html");
	tree.add(30505, 305, "3.5.5 autocomplete", "http://localhost/waibo/bible/html5/html/3/3.5.5.html");
	tree.add(30506, 305, "3.5.6 autofocus", "http://localhost/waibo/bible/html5/html/3/3.5.6.html");
	tree.add(30507, 305, "3.5.7 required", "http://localhost/waibo/bible/html5/html/3/3.5.7.html");
	tree.add(30508, 305, "3.5.8 placeholder", "http://localhost/waibo/bible/html5/html/3/3.5.8.html");
	tree.add(30509, 305, "3.5.9 pattern", "http://localhost/waibo/bible/html5/html/3/3.5.9.html");
	tree.add(30510, 305, "3.5.10 list", "http://localhost/waibo/bible/html5/html/3/3.5.10.html");
	tree.add(4, -1, "4 Canvas绘图基础", "http://localhost/waibo/bible/html5/html/4/4.html");
	tree.add(401, 4, "4.1 基本用法", "http://localhost/waibo/bible/html5/html/4/4.1.html");
	tree.add(402, 4, "4.2 使用路径", "http://localhost/waibo/bible/html5/html/4/4.2.1.html");
	tree.add(40201, 402, "4.2.1 如何使用路径", "http://localhost/waibo/bible/html5/html/4/4.2.1.html");
	tree.add(40202, 402, "4.2.2 绘制线段", "http://localhost/waibo/bible/html5/html/4/4.2.2.html");
	tree.add(40203, 402, "4.2.3 绘制矩形", "http://localhost/waibo/bible/html5/html/4/4.2.3.html");
	tree.add(40204, 402, "4.2.4 绘制圆弧", "http://localhost/waibo/bible/html5/html/4/4.2.4.html");
	tree.add(40205, 402, "4.2.5 绘制贝塞尔曲线", "http://localhost/waibo/bible/html5/html/4/4.2.5.html");
	tree.add(403, 4, "4.3 绘制文本", "http://localhost/waibo/bible/html5/html/4/4.3.html");
	tree.add(404, 4, "4.4 处理图像和视频", "http://localhost/waibo/bible/html5/html/4/4.4.1.html");
	tree.add(40401, 404, "4.4.1 绘制图像", "http://localhost/waibo/bible/html5/html/4/4.4.1.html");
	tree.add(40402, 404, "4.4.2 操作图像像素", "http://localhost/waibo/bible/html5/html/4/4.4.2.html");
	tree.add(40403, 404, "4.4.3 创建图像数据", "http://localhost/waibo/bible/html5/html/4/4.4.3.html");
	tree.add(405, 4, "4.5 装饰图形", "http://localhost/waibo/bible/html5/html/4/4.5.1.html");
	tree.add(40501, 405, "4.5.1 线条的样式", "http://localhost/waibo/bible/html5/html/4/4.5.1.html");
	tree.add(40502, 405, "4.5.2 颜色及透明度", "http://localhost/waibo/bible/html5/html/4/4.5.2.html");
	tree.add(40503, 405, "4.5.3 渐变和图案", "http://localhost/waibo/bible/html5/html/4/4.5.3.html");
		tree.add(405031, 40503, " 渐变", "http://localhost/waibo/bible/html5/html/4/4.5.3.html#渐变");
		tree.add(405032, 40503, " 图案", "http://localhost/waibo/bible/html5/html/4/4.5.3.html#图案");
	tree.add(40504, 405, "4.5.4 阴影", "http://localhost/waibo/bible/html5/html/4/4.5.4.html");
	tree.add(40505, 405, "4.5.5 裁剪区域", "http://localhost/waibo/bible/html5/html/4/4.5.5.html");
	tree.add(40506, 405, "4.5.6 图形组合", "http://localhost/waibo/bible/html5/html/4/4.5.6.html");
	tree.add(406, 4, "4.6 画布变换", "http://localhost/waibo/bible/html5/html/4/4.6.html");
	tree.add(407, 4, "4.7 保存恢复状态", "http://localhost/waibo/bible/html5/html/4/4.7.html");
	tree.add(408, 4, "4.8 绘制动画", "http://localhost/waibo/bible/html5/html/4/4.8.html");
	tree.add(409, 4, "4.9 保存画布", "http://localhost/waibo/bible/html5/html/4/4.9.html");
	tree.add(5, -1, "5 客户端存储", "http://localhost/waibo/bible/html5/html/5/5.html");
	tree.add(501, 5, "5.1 Cookie", "http://localhost/waibo/bible/html5/html/5/5.1.1.html");
	tree.add(50101, 501, "5.1.1 存储Cookie", "http://localhost/waibo/bible/html5/html/5/5.1.1.html");
	tree.add(50102, 501, "5.1.2 读取Cookie", "http://localhost/waibo/bible/html5/html/5/5.1.2.html");
	tree.add(50103, 501, "5.1.3 修改Cookie", "http://localhost/waibo/bible/html5/html/5/5.1.3.html");
	tree.add(50104, 501, "5.1.4 删除Cookie", "http://localhost/waibo/bible/html5/html/5/5.1.4.html");
	tree.add(502, 5, "5.2 Web Storage", "http://localhost/waibo/bible/html5/html/5/5.2.1.html");
	tree.add(50201, 502, "5.2.1 概述", "http://localhost/waibo/bible/html5/html/5/5.2.1.html");
	tree.add(50202, 502, "5.2.2 浏览器检测", "http://localhost/waibo/bible/html5/html/5/5.2.2.html");
	tree.add(50203, 502, "5.2.3 Web Storage API", "http://localhost/waibo/bible/html5/html/5/5.2.3.html");
	tree.add(50204, 502, "5.2.4 Storage事件", "http://localhost/waibo/bible/html5/html/5/5.2.4.html");

	document.write(tree);
	tree.openTo(id, true);
}